package com.SmartCare.common.dto.medicine;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.SmartCare.pojo.role.ElderlyInformation;
import com.SmartCare.pojo.role.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class MedicationRecordDTO implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 药单数据id
     */
    private MedicationListDTO medicationList;

    /**
     * 药单编号
     */
    private Long listNum;

    /**
     * 用药情况
     */
    private Integer status;

    /**
     * 用药时间
     */
    private Time time;

    /**
     * 用药老人
     */
    private ElderlyInformation elder;

    /**
     * 负责护工
     */
    private User nurse;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;

    /**
     * 完成用药的时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date updateTime;
    
}
